import axiosInstance from './axios-instance.js';

function get (url, params = {}, config = {}) {
  return axiosInstance.get(url, { params, ...config }).then(res => res);
}
function post (url, data = {}, config = {}) {
  return axiosInstance.post(url, data, config).then(res => res);
}
function del (url, params = {}, config = {}) {
  return axiosInstance.delete(url, { params, ...config }).then(res => res);
}
export { get, post, del }